package com.wanghengzhi.kata;

/**
 *
 * @author wanghengzhi
 * @since 2021/11/6 22:05
 */
public class AgedBrie extends Goods {
    public AgedBrie(double quality, int sellIn) {
        super("Aged Brie", quality, sellIn);
    }

    @Override
    public void updateByDay() {
        increaseByOneIfQualityLessThanFifty();
        decreaseSellInByOne();
        if (sellIn < 0) {
            increaseByOneIfQualityLessThanFifty();
        }
    }
}
